/**
 * SPDX-FileCopyrightText: 2023-2025 Sangfor Technologies Inc.
 * SPDX-License-Identifier: Mulan PSL v2
 */
/**
 * 组件库样式替换
 * 先这么覆盖，有时间把可以复用的抽出来作为组件库的主题皮肤
 */

.maintain .radio-button-group .sfv-btn {
    color: #333;
    font-size: 12px
}

.maintain .radio-button-group .sfv-btn.sfv-btn-selected {
    background: #4d8dd9;
    color: #fff
}

/* flex 布局样式 */
.flex-container {
    display: flex;
    justify-content: space-between;
}
.flex-center{
    display: flex;
    align-items: center;
}

.flex-container.flex-container-row {
    flex-direction: row;
}

.flex-container.flex-container-column {
    flex-direction: column;
}

/** 覆盖组件库皮肤 **/
.sfv-nav-menu {
    width: 100% !important;
}

.sfv-modal_body {
    height: calc(100% - 95px);
}

.sfv-textfield {
    width: 200px;
}


/** 覆盖tab样式 **/
.sfv-tabpanel_header {
    background: #fff;
    padding: 0;
    border: none;
    border-bottom: 2px solid #DEE0E1;
    overflow: unset;
    height: 47px;
}

.sfv-tabpanel_item--active,
.sfv-tabpanel_item--active:hover {
    border-bottom: 2px solid #4d8dd9 !important;
}

.sfv-tabpanel_item {
    line-height: 45px;
    border: none;
    background: #fff;
    border-bottom: 2px solid #DEE0E1;
}

.sfv-tabpanel_item~.sfv-tabpanel_item {
    margin-left: 0;
}
.sfv-tabpanel .sfv-tabpanel_header .sfv-tabpanel_item{
    border: none !important;
}

.sfv-tabpanel_item:hover {
    background: #fff;
    border-bottom: 2px solid #DEE0E1
}
.sfv-tabpanel .sfv-tabpanel_header .sfv-tabpanel_item.sfv-tabpanel_item--active{
    box-shadow: none !important;
    border: none !important;
    border-bottom: 2px solid #204ed9 !important;
}
.sfv-tabpanel.sfv-tabpanel--large .sfv-tabpanel_header .sfv-tabpanel_item{
    background: #fff;
}

/**loading*/
.sfv-mask {
    // background: #4d8dd9;
    // opacity: 0.6
}

/**tooltip */
.sfv-tooltip {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    box-shadow: 0 0 3px #f8f8f8;
}

.sfv-tooltip[x-placement=bottom-start] .sfv-layer-arrow:before {
    border-bottom-color: #ddd;
}

.sfv-tooltip[x-placement=bottom-start] .sfv-layer-arrow:after {
    border-bottom-color: #fff
}

.sfv-tooltip[x-placement=bottom] .sfv-layer-arrow:after {
    border-bottom-color: #fff
}

.sfv-tooltip[x-placement=bottom] .sfv-layer-arrow:before {
    border-bottom-color: #ddd;
}

.sfv-tooltip.sfv-error {
    color: #fff
}


/** menu皮肤定制 */
.sfv-menu_scroll {
    background: #fff;
    color: #333;
}

.sfv-menu-item:hover {
    // background: #204ed9;
    color: #204ed9;
}

// .sfv-menu-item:hover .iconfont {
//     color: #fff;
// }

.sfv-toolbar_inner {
    padding: 8px 6px !important;
    border-bottom: 1px solid #DEE0E1
}

/**sf-nav-menu皮肤定制 */
.sfv-nav-menu-list-item {
    padding-left: 23px !important;
}

.sfv-menu{
    border:1px solid #ddd !important;
}


/** sfv-checkbox 皮肤定制 */
.sfv-checkbox-wrap:before {
    border-radius: 2px;
    border-color: #ddd
}

.sfv-textfield.sfv-searchfield .sfv-textfield_input {
    transition: .3s all;
    -webkit-transition: .3s all;
    -moz-transition: .3s all;
    -ms-transition: .3s all;
    -o-transition: .3s all;
}


.sfv-pagination__wrapper{
    bottom: 10px;
}

#nprogress .bar{
    background-color: #204ed9 !important;
}
.table-data{
    height: 100%;
    .sfv-grid{
        border: none;
        height: 100%;
        display: flex;
        flex-direction: column;
        .sfv-table{
            flex: 1;
        }
    }
}
